<template>
    <div class="busiAgentPayApproval" v-loading="loading">
        <plainTable :tableData="tableData" :tableConfigData="tableConfigData" :pageInfo="pageInfo"
            @verify="handleClickVerify" @prevPage="handlePrevPage" @nextPage="handleNextPage" />
    </div>
</template>

<script setup>
import plainTable from '@/components/plainTable.vue'
import { useBusiAgentPayApproval } from '@/hooks/index'


const { modifyWithdrawalAudit, tableData, tableConfigData, pageInfo, prevPage, nextPage, loading } = useBusiAgentPayApproval();

const handleClickVerify = (info, action) => {
    modifyWithdrawalAudit({
        id: info.id,
        statusValue: action
    });
}

const handlePrevPage = () => {
    prevPage();
}

const handleNextPage = () => {
    nextPage();
}
</script>
<style scoped lang="scss">
.busiAgentPayApproval {}
</style>